package com.leyou.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.order.entity.Order;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper extends BaseMapper<Order> {
    @Select("select order_id from tb_order where TIMESTAMPDIFF(MINUTE, create_time,NOW() ) > 20 and status=0")
    List<Long> findOrderIds();

    void changeStatus(List<Long> ids);
}
